﻿using AutoMapper;
using DeZhen.CollaborationPlatform.Model.DTO.ApiManagement;
using DeZhen.CollaborationPlatform.Model.Entities;

namespace DeZhen.CollaborationPlatform.WebApi.Configurations
{
    public class AutoMapperConfigs : Profile
    {
        public AutoMapperConfigs()
        {
            #region 采集任务
            //CreateMap<CollectionTaskDetail, CollectionTaskDetailDTO>()
            //    .ForMember(dest => dest.ExecuteDate, opt => opt.MapFrom(src => src.CreateTime));
            #endregion

            #region 接口管理
            CreateMap<ApiManagementAdd, ApiManagements>();
            CreateMap<ApiManagementEdit, ApiManagements>();
            CreateMap<ApiManagements, ApiManagementDTO>();
            #endregion
        }
    }
}
